package com.itheima.activities.mapper;

import com.itheima.entity.pojo.RedPacketList;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;
import java.util.Set;

/**
 * @author :wujunjie
 * createTime :2022-12-19 20:21
 * description :
 */
@Mapper
public interface RedPacketListMapper {
    Boolean insertRedPacketLists(@Param("redPacketLists") ArrayList<RedPacketList> redPacketLists);

    List<RedPacketList> selectRedPacketListByRedPacketIdsAndStatus(@Param("redPacketIds") Set<String> redPacketIds, @Param("status") int status);

    Boolean updateStatusByRedPacketIds(@Param("ids") Set<String> ids);

    Boolean updateById(@Param("redPacketList") RedPacketList redPacketList);

}
